home *** CD-ROM | disk | FTP | other *** search
- % $Id: xybsql10.mf,v 2.7 1992/12/14 01:41:26 kris Exp $
- %
- % XYBSQL10: lower squiggles/quarter circles for XY-pic at 10 point.
- % Copyright (c) 1992 Kristoffer H. Rose <kris@diku.dk>
- %
- % This file is part of the XY-pic macro package.
- %
- % The XY-pic macro package is free software; you can redistribute it and/or
- % modify it under the terms of the GNU General Public License as published by
- % the Free Software Foundation; either version 2 of the License, or (at your
- % option) any later version.
- %
- % The XY-pic macro package is distributed in the hope that it will be
- % useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
- % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
- % Public License for more details.
- %
- % You should have received a copy of the GNU General Public License along
- % with this macro package; if not, write to the Free Software Foundation,
- % Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- % _________________________________________________________________________
- %
- % CONTENTS: Squiggles are quarter circles with secant in all directions.
- % Each has zero bounding box around the start point, i.e., from which the
- % quarter circle `turns letf' ... this can be illustrated as follows:
- %
- % Code: [-1] 15 31 47 63 79 95 111 127
- % _
- % | ) | /\
- % _o o o o o- o o o _o
- % | ( |_ \/ |
- % _________________________________________________________________________
- %
- font_identifier "XYBSQL"; font_size 10pt#;
- mode_setup;
-
- % METANESS...
- %
- segl# = sqrt 2 * 1/4 designsize; define_pixels(segl); % segment length
- segx# = (sqrt 2 - 1)*segl#; define_pixels(segx); % segment height
- segw# = .4pt#; define_whole_blacker_pixels(segw); % segment thickness
- %
- pickup pencircle scaled segw; char_pen := savepen;
- %
- % chartowards makes char cc with quarter circle that is secant to line
- % from (0,0) to (dx,dy), turning left.
- %
- def chartowards(expr cc,dx,dy) =
- beginchar(cc,0,0,0);
- a := angle (dx,dy);
- z0 = (0,0); z1 = segl * dir a;
- pickup char_pen; draw z0{dir(a-45)}..{dir(a+45)}z1;
- endchar
- enddef;
-
- % GENERATE...
- %
- input xyd
-
- bye.
- %
- % $Log: xybsql10.mf,v $
- % Revision 2.7 1992/12/14 01:41:26 kris
- % Now uses xyd.mf.
- %
- % Based on obsolete xyqc10.mf [Revision 2.6 1992/06/24 01:23:34 kris]
-